RegDeleteKeyIfEmpty

Prototype:

function RegDeleteKeyIfEmpty(const RootKey: Integer; const SubkeyName: String): Boolean;

Description:

Deletes the specified subkey if it has no subkeys or values. Returns True if successful, False otherwise.